<?php

namespace App\Models;

class VideoLibrary extends BaseModel
{
    protected $guarded = [];

    protected $appends = ['duration'];

    public function getDurationAttribute()
    {
        if (!$this->total_second) return '';

        return fromatDuration($this->total_second);
    }
}
